<div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true" style="margin-top: 8%">
    <div class="modal-sm"  style="z-index: 1050; width: auto;padding: 10px;margin-right: auto;margin-left: auto;right: auto;left: 50%;width: 600px;padding-top: 30px;padding-bottom: 30px;">
        <div class="modal-content" style="border-radius: 5px;">
            <div class="modal-header"
                 style="padding-bottom:0px; border-bottom:0px;padding-left:0px;padding-right:0px;background-color: #ffffff">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="height:50px;">
                    <span class=""
                          style="height:50px;padding:10px 40px 10px 0px;background-image: url('__APP__/Public/assets_h/images/modal_close.png') ;background-size:100%;background-repeat: no-repeat"></span>
                </button>
                <div class="container-fluid">
                    <div class="row" style="margin-top: 5%">
                        <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                             style="margin-bottom: 0px">
                            <div class="col-md-6 col-xs-6 col-sm-6  col-md-offset-3 col-sm-offset-3 col-xs-offset-3">
                                <h2 style="font-family: 楷体;text-align: center;margin-bottom: 0px ">更换壁纸</h2>
                            </div>

                        </div>
                    </div>

                </div>
                <form  method="post" id="mjkn"  action="{:U('Personal/addphoto')}" enctype="multipart/form-data"class="form-horizontal">
                    <div class="modal-body" style="padding-bottom:0px;background-color:white;">
                        <div class="container-fluid" style="width: 100%">
                            <div class="row" style="width: 100%">
                                <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                     style="width: 100%" >
                                    <div class="col-md-6  col-xs-6 col-sm-6 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                         style="width: 100%" id="modalMessage">
          <!--<input style="font-family: 楷体;font-size: larger;margin-top: 2%" type="file" name="bgphoto" id="exampleInputFile" required>-->
                                        <div class="row" style="margin-top: 2%">
                                            <div class=" col-md-6 col-md-offset-4">
                                                <div class="fileupload fileupload-new" data-provides="fileupload" style="">
                                                    <input type="hidden" value="" name="bgphoto" >
                                                    <div class="fileupload-new img-thumbnail"
                                                         style="width: 110px; height: 110px;background-color:#5f5f5f">
                                                        <img src="">
                                                    </div>
                                                    <div class="fileupload-preview fileupload-exists img-thumbnail"
                                                         style="width: 110px; max-height: 110px;"></div>
                          <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="bgphoto" required>
                        </span>
                          <span>
                        <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                           href="#">撤销</a>
                        </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div class="modal-footer" style="background-color: #02baf0">
                        <div class="container-fluid">

                            <div class="row" style="padding-top: 15px ">
                                <div class="col-xs-6 col-xs-offset-3 col-sm-offset-0 col-md-offset-3  col-md-6">
                                    <input type="submit" class=" btn-block btn btn-primary" id="modalButton" value="确   定" style="">

                                </div>
                            </div>
                        </div>
                    </div>
                </form>

            </div>


        </div>
    </div>
</div>